package com.sky.service.impl;

import com.sky.domain.Job;
import com.sky.mapper.JobMapper;
import com.sky.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 尹稳健~
 * @version 1.0
 */
@Service
public class JobServiceImpl implements JobService {

    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> findAll(String name) {
        return jobMapper.findAll(name);
    }

    @Override
    public Job findJobById(Integer id) {
        return jobMapper.findJobById(id);
    }

    @Override
    public void update(Job job) {
        jobMapper.update(job);
    }

    @Override
    public void insert(Job job) {
        jobMapper.insert(job);
    }

    @Override
    public void delete(Integer id) {
        jobMapper.delete(id);
    }
}
